package com.qzsoft.zhjd.materiel.modules.materielprojectsummary.controller;

import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.common.utils.ResultUtils;
import com.qzsoft.zhjd.materiel.modules.materielprojectsummary.dto.MaterielProjectSummaryDto;
import com.qzsoft.zhjd.materiel.modules.materielprojectsummary.service.MaterielProjectSummaryService;

/**
 * @ClassName MaterielProjectSummaryController
 * @Description 项目发料情况汇总分析
 * @author linhuawei
 * @since 2022-04-04
 */
@RestController
@RequestMapping("/api/materielProjectSummary")
public class MaterielProjectSummaryController {

    @Autowired
    private MaterielProjectSummaryService materielProjectSummaryService;

    /**
     * @Title page
     * @Description 收料台账列表
     * @param params 查询条件
     * @return 收料台账列表
     */
    @RequiresPermissions("materiel:projectsummary")
    @GetMapping("/page")
    public Result<IPage<MaterielProjectSummaryDto>> page(@RequestParam Map<String, Object> params) {
        IPage<MaterielProjectSummaryDto> page = materielProjectSummaryService.pageDto(params);
        return ResultUtils.ok(page);
    }

}
